--# libLoader
-- libLoader
local function run(data)
	resetMatrix()
	resetStyle()
	loadstring( data )()
	print("xfcCodeaShowcase")
	setup()
end
local function success(data,status,headers)
-- pasteboard.text = data
	saveGlobalData("xfcCodeaShowcase",data)
	tween.delay(0.1,function()
		print("ready")
		run(data)
		end)
end
local function fail(data,status,headers)
	print("load failed")
	print(data)
	print(status)
end
function loadLibrary()
	local data = readGlobalData("xfcCodeaShowcase")
	if data == nil then
		url = "http://jmv38.comze.com/CODEA_4/xfcCodeaShowcase.txt"
		print("starting request")
		http.request(url,success,fail)
	else
		run(data)
	end
end